package com.rybbaby.tss.platform.sysDocumentGroup.service.imp;

import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.platform.sysDocumentGroup.entity.SysDocumentGroup;
import com.rybbaby.tss.platform.sysDocumentGroup.service.ISysDocumentGroupService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @description 文档分组数据库操作服务实现
 * 
 * @author 谢进伟
 * 
 * @createDate 2017-01-13 下午4:29:04
 */
@Service
@Transactional
public class SysDocumentGroupServiceImp extends BaseServiceImp<SysDocumentGroup> implements ISysDocumentGroupService {

	@Override
	public List<Map<String , Object>> parentIdDatasource(){
		String sql1 = "SELECT id,name FROM wmp.sys_document_group";
		List<Map<String , Object>> parentId_datasources = this.findForJdbc(sql1 , null);
		return parentId_datasources;
	}
	
	
}
